package com.ron.ronmall.member.controller;

import com.ron.common.utils.R;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试open-feign远程调用
 *
 * @author Ron
 * @date 2021/3/3 21:16
 **/
@RefreshScope
@RestController
@RequestMapping("member/config")
public class TestConfigController {

    @Value("${member.user.name}")
    private String name;

    @RequestMapping("/test/name")
    public R info(){
        return R.ok().put("name",name);
    }
}
